#include "Camera.h"

Camera::Camera( DirectX::XMFLOAT3 location ) : m_translation(DirectX::XMMatrixTranslation(location.x, location.y, location.z))
{
	m_translation = DirectX::XMMatrixTranslation(location.x, location.y, location.z);
}

Camera::~Camera(void)
{
}

DirectX::XMMATRIX Camera::GetViewMatrix()
{
	return DirectX::XMMatrixInverse(nullptr, m_translation);
}

void Camera::Move( DirectX::XMFLOAT3 movement )
{
	m_translation *= DirectX::XMMatrixTranslation(movement.x, movement.y, movement.z);
}

DirectX::XMMATRIX Camera::GetCameraTransform( void )
{
	return DirectX::XMMatrixInverse(nullptr, GetViewMatrix());
}
